// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import java.util.List;
import java.util.Map;

import com.liuxinlong.modules.material.dto.MaterialResumeChangeDto;
import com.liuxinlong.modules.material.dto.MaterialStatusImportDto;
import org.springframework.stereotype.Service;

import com.liuxinlong.modules.dao.MocDetailDao;
import com.liuxinlong.modules.entity.MocDetail;
import com.liuxinlong.modules.mapper.MocDetailMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年2月22日
 */
@Service
public class MocDetailDaoImpl extends ServiceImpl<MocDetailMapper, MocDetail> implements MocDetailDao {

	@Override
	public List<MocDetail> pageDetailList(Map<String, Object> queryParam) {
		return baseMapper.pageDetailList(queryParam);
	}

	@Override
	public int getDetailCount(Map<String, Object> queryParam) {
		return baseMapper.getDetailCount(queryParam);
	}

	@Override
	public List<MaterialResumeChangeDto> getDetailsByMaterial(String material, String region) {
		return baseMapper.getDetailsByMaterial(material,region);
	}

	@Override
	public List<MaterialStatusImportDto> getMaterialStatusChanges(String startTime) {
		return baseMapper.getMaterialStatusChanges(startTime);
	}

	@Override
	public List<MaterialResumeChangeDto> getDetailsByChildMaterial(List<String> materialList, String region) {
		return baseMapper.getDetailsByChildMaterial(materialList,region);
	}

	@Override
	public void deleteByRecordId(String recordId) {
		baseMapper.deleteByRecordId(recordId);
	}

	@Override
	public List<MocDetail> getDetailsByMaterials(List<String> materialList) {
		return baseMapper.getDetailsByMaterials(materialList);
	}

}
